package net.sxnic.workflow.pd;

import javax.persistence.Entity;
import javax.persistence.Table;

import net.sxinfo.core.entity.AbstractEntity;

import org.hibernate.annotations.BatchSize;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

/**
 * 流程定义
 * 
 * @author 孙宇飞
 * 
 */
@Entity
@Table(name = "wf_pd")
@BatchSize(size = 10)
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Pd extends AbstractEntity {

	private static final long serialVersionUID = 3117405431360649487L;

	/**
	 * pd版本号，自增
	 */
	private int pdVersion;

	private String name;
	
	//公文，请示，其他
	private String cate;
	
	//固定流程，自由流程
	private String ctype;
	
	//描述
	private String description;

	public Pd() {
		super();
	}
	
	public Pd(String name) {
		super();
		this.name = name;
	}
	
	public String getCate() {
		return cate;
	}

	public void setCate(String cate) {
		this.cate = cate;
	}

	public String getCtype() {
		return ctype;
	}

	public void setCtype(String ctype) {
		this.ctype = ctype;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Pd(int pdVersion, String name) {
		super();
		this.pdVersion = pdVersion;
		this.name = name;
	}

	public int getPdVersion() {
		return pdVersion;
	}

	public void setPdVersion(int pdVersion) {
		this.pdVersion = pdVersion;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

}
